package com.hb.B_面向对象.K_多态和拓展.A_extension

fun MutableList<Int>.exchange(fromIndex:Int, toIndex:Int){
    val tmp= this[fromIndex]
    this[fromIndex]=this[toIndex]
    this[toIndex]=tmp
}